# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Changing field 'Order.city'
        db.alter_column('shop_order', 'city', self.gf('django.db.models.fields.CharField')(max_length=25, null=True))

        # Changing field 'Order.postcode'
        db.alter_column('shop_order', 'postcode', self.gf('django.db.models.fields.CharField')(max_length=10, null=True))

        # Changing field 'Order.size'
        db.alter_column('shop_order', 'size', self.gf('django.db.models.fields.CharField')(max_length=5))

        # Changing field 'Order.address_line_2'
        db.alter_column('shop_order', 'address_line_2', self.gf('django.db.models.fields.CharField')(max_length=25, null=True))

        # Changing field 'Order.address_line_1'
        db.alter_column('shop_order', 'address_line_1', self.gf('django.db.models.fields.CharField')(max_length=25, null=True))


    def backwards(self, orm):
        
        # User chose to not deal with backwards NULL issues for 'Order.city'
        raise RuntimeError("Cannot reverse this migration. 'Order.city' and its values cannot be restored.")

        # User chose to not deal with backwards NULL issues for 'Order.postcode'
        raise RuntimeError("Cannot reverse this migration. 'Order.postcode' and its values cannot be restored.")

        # Changing field 'Order.size'
        db.alter_column('shop_order', 'size', self.gf('django.db.models.fields.CharField')(max_length=3))

        # User chose to not deal with backwards NULL issues for 'Order.address_line_2'
        raise RuntimeError("Cannot reverse this migration. 'Order.address_line_2' and its values cannot be restored.")

        # User chose to not deal with backwards NULL issues for 'Order.address_line_1'
        raise RuntimeError("Cannot reverse this migration. 'Order.address_line_1' and its values cannot be restored.")


    models = {
        'shop.hoodiecolour': {
            'Meta': {'object_name': 'HoodieColour'},
            'colour': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'rgb': ('django.db.models.fields.CharField', [], {'max_length': '6'}),
            'shop': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'hoodie_colour_colour'", 'to': "orm['shop.Shop']"})
        },
        'shop.hoodiesize': {
            'Meta': {'object_name': 'HoodieSize'},
            'colour': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'hoodie_size_colour'", 'to': "orm['shop.HoodieColour']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'size': ('django.db.models.fields.CharField', [], {'max_length': '5'})
        },
        'shop.order': {
            'Meta': {'object_name': 'Order'},
            'address_line_1': ('django.db.models.fields.CharField', [], {'max_length': '25', 'null': 'True', 'blank': 'True'}),
            'address_line_2': ('django.db.models.fields.CharField', [], {'max_length': '25', 'null': 'True', 'blank': 'True'}),
            'city': ('django.db.models.fields.CharField', [], {'max_length': '25', 'null': 'True', 'blank': 'True'}),
            'colour': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '40'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'phone_number': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
            'postcode': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
            'shop': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['shop.Shop']"}),
            'size': ('django.db.models.fields.CharField', [], {'max_length': '5'}),
            'surname': ('django.db.models.fields.CharField', [], {'max_length': '15'})
        },
        'shop.shop': {
            'Meta': {'object_name': 'Shop'},
            'address_required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'closing_date': ('django.db.models.fields.DateField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
            'opening_date': ('django.db.models.fields.DateField', [], {}),
            'order_target': ('django.db.models.fields.IntegerField', [], {}),
            'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '16', 'decimal_places': '2'}),
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '60', 'db_index': 'True'})
        }
    }

    complete_apps = ['shop']
